package com.abel.jdbc;

import java.sql.Connection;
import java.sql.DriverManager;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * @author xiachao
 * @date 2018/12/22
 */
public class Main {

    private static String driverName = "com.mysql.jdbc.Driver";

    private static String url = "";

    private static String user = "";

    private static String password = "";

    private static Connection connection = null;

    public void init(){
        try {
            Class.forName(driverName);
            connection = DriverManager.getConnection(url);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        new Main().init();

    }

}
